﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 订单信息
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2017-12-11 
    /// </summary>
    [Table("EXT_ORDER")]
    public class OrderEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [Key]
        [Column("F_ID")]
        public string Id { get; set; }
        /// <summary>
        /// 客户Id
        /// </summary>
        [Column("F_CUSTOMERID")]
        public string CustomerId { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [Column("F_CUSTOMERNAME")]
        public string CustomerName { get; set; }
        /// <summary>
        /// 业务员Id
        /// </summary>
        [Column("F_SALESMANID")]
        public string SalesmanId { get; set; }
        /// <summary>
        /// 业务员
        /// </summary>
        [Column("F_SALESMANNAME")]
        public string SalesmanName { get; set; }
        /// <summary>
        /// 订单日期
        /// </summary>
        [Column("F_ORDERDATE")]
        public DateTime? OrderDate { get; set; }
        /// <summary>
        /// 订单编码
        /// </summary>
        [Column("F_ORDERCODE")]
        public string OrderCode { get; set; }
        /// <summary>
        /// 运输方式
        /// </summary>
        [Column("F_TRANSPORTMODE")]
        public string TransportMode { get; set; }
        /// <summary>
        /// 发货日期
        /// </summary>
        [Column("F_DELIVERYDATE")]
        public DateTime? DeliveryDate { get; set; }
        /// <summary>
        /// 发货地址
        /// </summary>
        [Column("F_DELIVERYADDRESS")]
        public string DeliveryAddress { get; set; }
        /// <summary>
        /// 付款方式
        /// </summary>
        [Column("F_PAYMENTMODE")]
        public string PaymentMode { get; set; }
        /// <summary>
        /// 应收金额
        /// </summary>
        [Column("F_RECEIVABLEMONEY")]
        public decimal? ReceivableMoney { get; set; }
        /// <summary>
        /// 定金比率
        /// </summary>
        [Column("F_EARNESTRATE")]
        public decimal? EarnestRate { get; set; }
        /// <summary>
        /// 预付定金
        /// </summary>
        [Column("F_PREPAYEARNEST")]
        public decimal? PrepayEarnest { get; set; }
        /// <summary>
        /// 当前状态
        /// </summary>
        [Column("F_CURRENTSTATE")]
        public int? CurrentState { get; set; }
        /// <summary>
        /// 附件信息
        /// </summary>
        [Column("F_FILEJSON")]
        public string FileJson { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [Column("F_DESCRIPTION")]
        public string Description { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [Column("F_SORTCODE")]
        public long? SortCode { get; set; }
        /// <summary>
        /// 有效标志:【1-正常、0-作废】
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATORTIME")]
        public DateTime? CreatorTime { get; set; }
        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSERID")]
        public string CreatorUserId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
        public DateTime? LastModifyTime { get; set; }
        /// <summary>
        /// 修改用户
        /// </summary>
        [Column("F_LASTMODIFYUSERID")]
        public string LastModifyUserId { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        [Column("F_DELETEMARK")]
        public int? DeleteMark { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        [Column("F_DELETETIME")]
        public DateTime? DeleteTime { get; set; }
        /// <summary>
        /// 删除用户
        /// </summary>
        [Column("F_DELETEUSERID")]
        public string DeleteUserId { get; set; }
    }
}